package com.yangsen.login;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;

public class LoginController extends Controller {

    private LoginService srv = LoginService.me;


    @Before(LoginValidator.class)
    public void index(String username, String pwd) {
        renderJson(srv.login(username, pwd));
    }

}
